package com.neuedu.income.service;

import com.neuedu.mapper.IncomeMapper;
import com.neuedu.po.Income;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IncomeServiceImpl implements IncomeService {

    @Autowired
    private IncomeMapper dao;

    @Override
    public List<Income> selectAll(Income i) {
        return dao.selectAllincome(i);
    }

    @Override
    public Income selectById(Income i) {
        return dao.selectById(i);
    }

    @Override
    public int add(Income i) {
        return dao.add(i);
    }

    @Override
    public int update(Income i) {
        return dao.update(i);
    }

    @Override
    public int delete(Income i) {
        return dao.delete(i);
    }
}
